package com.weight.common.login.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.weight.common.login.DAO.MenuInfoMapper;
import com.weight.common.login.PO.MenuInfo;
import com.weight.common.login.service.MenuInfoService;
 
@Service()
@Transactional
public class MenuInfoServiceImpl implements MenuInfoService {
	@Autowired
	MenuInfoMapper menuInfoMapper;

	@Override
	public List<MenuInfo> findMenuInfoByT(MenuInfo MenuInfo) {
		
		return menuInfoMapper.findMenuInfoByT(MenuInfo);
	}

	@Override
	public int deleteByMenuInfoId(Map map) {
		
		return menuInfoMapper.deleteByMenuInfoId(map);
	}

	@Override
	public int insertMenuInfo(MenuInfo MenuInfo) {
		
		return menuInfoMapper.insertMenuInfo(MenuInfo);
	}

	@Override
	public int updateMenuInfo(MenuInfo MenuInfo) {
		
		return menuInfoMapper.updateMenuInfo(MenuInfo);
	}
	public List<MenuInfo> findMenuInfoByUserInfoId(Map map ){
		return menuInfoMapper.findMenuInfoByUserInfoId(map);
	}

}
